import Ani from './ani.min'
import mixinsMethod from './lib/mixinsMethods'
import AniRouter from "./ani.router.min";
import AniStore from "./ani.store.min"
const router=new AniRouter()
router.setRouterIntercept([
  
  {
    url:'/index/index',  
    before(e){
      console.log('跳转之前',e);
      e.router.options.id=100
      return e
    },
    after(e){
      console.log('跳转成功',e,this);
    }
  },

])

App({
    Ani: new Ani({
        use:[mixinsMethod]
    }),
 
    onLaunch: function () {
        console.dir(Page);
        // this.Ani.afterRouter(function (page, routerName) {
        //     // console.log('afterRouter',page, routerName);
        // })
        // this.Ani.beforeRouter(function (data) {
        //     console.log('beforeRouter',data)
        //     return true
        // })
        // this.Ani.listen('onShow', function () {
        //     console.log('监听到onShow执行')
        // })
        // this.Ani.listen('onLoad', function (options) {
        //     console.log('监听到onLoad执行', options)
        //     return {data: 20}
        // })
        // this.Ani.listen('onReady', function () {
        //     console.log('监听到onReady执行')
        // })

        // console.log(this.fn.a);

    }
})
 